# -*- coding: utf-8 -*-
# author: sixmillions
# date: 2022/3/24

# 优先级
# http://c.biancheng.net/view/2190.html

a = 1
b = 2
c = 3
print(a or b and c)  # 1
# 运算顺序是
print(a or (b and c))  # 1
# 也就是，先算 b and c 结果是3，然后算 1 or 3，结果是1

print((a or b) and c)  # 3
